package com.totoro.mall.mall_buyer.repository;

import com.totoro.mall.mall_buyer.model.ProductInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.JpaRepository;

import java.awt.print.Pageable;
import java.util.List;

/**
 * 商品信息
 * Created by Niki on 2018/4/12 7:54
 */
public interface ProductInfoRepository extends JpaRepository<ProductInfo, String> {
    List<ProductInfo> findByProductStatus(Integer productStatus);

    Page<ProductInfo> findByProductStatus(Pageable pageable);
}
